-- GENERATED SPELL FOR [Bach'lor] --


function spell0_18258(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18258', 15000, 1)
end

function spell1_18258(pUnit, Event) --@Talbuk Strike,n/a--
pUnit:FullCastSpellOnTarget(32020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18258', 578, 1)
end

function Sorts_18258(pUnit, Event)
local choix_sorts_18258 = math.random(0, 1)
if choix_sorts_18258 == 0 then
pUnit:RegisterEvent('spell0_18258', 1, 1)
end
if choix_sorts_18258 == 1 then
pUnit:RegisterEvent('spell1_18258', 1, 1)
end
end

function mob18258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18258', math.random(1500, 3000), 1)
end

function mob18258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18258, 1, 'mob18258_Action')
RegisterUnitEvent(18258, 2, 'mob18258_Leave')
RegisterUnitEvent(18258, 3, 'mob18258_Kill')
RegisterUnitEvent(18258, 4, 'mob18258_Die')
